package com.glw.sso.platform.common.exception;

import com.glw.sso.platform.common.annotation.ErrorMessage;

/**
 * @ClassName ParamValidException
 * @Version v1.0
 */
public class ParamValidException extends BaseException {

    public static class Code {

        @ErrorMessage("参数校验不通过 {0}:{1}")
        public static final int PARAM_VALID_FAIL = 400;

    }

    public ParamValidException(int code, Object... args) {
        super(code, args);
    }

    public static ParamValidException create(int code, Object... args) {
        return new ParamValidException(code, args);
    }

    @Override
    public Class getCodeClass() {
        return ParamValidException.Code.class;
    }
}
